package com.yyq;

import com.yyq.json.readJson;
import org.junit.Test;

import java.io.File;
import java.sql.SQLOutput;
import java.util.ArrayList;

import static com.yyq.fileOperation.getAllFiles;
import static com.yyq.md.dealMD;

/**
 * @author yyq
 * @create 2021-11-08 15:57
 */
public class KillLocalURL {

    public static void main(String[] args) {
        //为扫描路径
        String path="D:\\Markdown";
        //测试路径 ---测试代码块不扫描
        // String path="C:\\Users\\yyq\\Desktop\\超算平台";

        ArrayList<File> list=new ArrayList<File>();
        getAllFiles(path,list);
        for (int i = 0; i < list.size(); i++) {
            System.out.println();
            System.out.println(list.get(i).getName());
            if(readJson.containFile(list.get(i).getName())){
                System.out.println("不处理"+list.get(i).getName()+"文件");
                System.out.println();
                continue;
            }
            dealMD(list.get(i).getPath());
        }
        System.out.println("******处理完成******");

    }
}
